package com.niit

class Animal(num1:Int,num2:Int) {
  //全局变量
  def sum():Unit={
    println(num1 * num2)
  }

}
